#include "minilog.hxx"


// 创建实例并打印
void demo_instantiation(void)
{
    class MiniLog log1(MiniLog::DEBUG);

    log1.setPrintToScreen(true);
    log1.setPrintToFile(true, "minilog.i.log", 2);

    log1.W(MiniLog::DEBUG, "hello by instantiation. ", 1);
    log1.W(MiniLog::DEBUG, "hello by instantiation.", "2");
    log1.W(MiniLog::DEBUG, "hello by instantiation.", 3.0);
}

int main(int argc, char *argv[])
{
    demo_instantiation();
    return 0;
}
